<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/9
  Time: 15:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}">
    <title>查询结果</title>
</head>
<body>
<h3>查询结果</h3>
<table cellpadding="0" cellspacing="0" border="1">
    <tr>
        <td>车次</td>
        <td>出发地</td>
        <td>目的地</td>
        <td>价格</td>
    </tr>
    <c:if test="${not empty MAP}">

        <tr>
            <td>${MAP['trainNum']}</td>
            <td>${MAP['startStation']}</td>
            <td>${MAP['terminalStation']}</td>
            <td>${MAP['sitePrice']}</td>
        </tr>

    </c:if>
    <c:if test="${empty MAP}">
        <tr >
            <td colspan="4" style="color: red">没有合适的数据</td>
        </tr>
    </c:if>
</table>

</body>
</html>
